//
//  PickerView.m
//  LLVMDEMO
//
//  Created by Zero on 2018/6/1.
//  Copyright © 2018年 Zero. All rights reserved.
//

#import "PickerView.h"

@implementation PickerView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)configuraView{
//    [self.dataPickerView reloadAllComponents];
    self.recognizer = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(disMissPickView)];
    if (self.backView != nil) {
        [self.backView removeFromSuperview];
    }
    self.backView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];
    self.backView.backgroundColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.3];
    [self.backView addGestureRecognizer:self.recognizer];
    self.frame = CGRectMake(0, [UIScreen mainScreen].bounds.size.height, [UIScreen mainScreen].bounds.size.width, 185);
    [self.backView addSubview:self];
    [[UIApplication sharedApplication].keyWindow addSubview:self.backView];
    
    [UIView animateWithDuration:0.25 animations:^{
        self.frame = CGRectMake(0, [UIScreen mainScreen].bounds.size.height -185, [UIScreen mainScreen].bounds.size.width, 185);
    }];
    
}
@end
